package com.youdianda.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Article implements Serializable {
    @ApiModelProperty("分类名")
    private String catename;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("作者的用户名， 用户发布的user-名称")
    private String author;

    @ApiModelProperty("seo关键字")
    private String keywords;

    @ApiModelProperty("seo的 描述")
    private String description;

    @ApiModelProperty("文章的标签，可多个逗号分隔")
    private String tags;

    @ApiModelProperty("是否置顶，1是，0否，置顶的文章必须是推荐文章")
    private Integer istop;

    @ApiModelProperty("0表示不推荐1表示推荐")
    private Integer ishot;

    @ApiModelProperty("创建时间")
    private Long createDate;

    @ApiModelProperty("阅读次数")
    private Long click;

    @ApiModelProperty("图片地址，可多张逗号分隔")
    private String pic;

    @ApiModelProperty("点赞数量")
    private String lovenum;

}
